<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Home extends Cus_Controller {	
	private $auth;
	
	public function __construct(){
		parent::__construct();
		$this->auth = $this->common_auth->check_auth();
	}
	
	public function index()
	{
		if($this->auth != NULL)
		{
			$data['seo']['title'] = 'Quản trị hệ thống';
			$data['template'] = '';		
			$this->load->view('backend/new/add', isset($data) ? $data : NULL);
		}
		else 
		{
			$this->common_string->php_redirect(CONS_BASE_URL . 'backend/auth/login');
		}
	}
}
